package com.ruicar.afs.cloud.channel.common.mq.sender;


import com.ruicar.afs.cloud.channel.common.mq.fallback.ChannelIdToCommissionSystemFallBack;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqClient;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqSender;

/**
 * @author mingzhi.li
 * @Description 渠道id同步同步佣金系统
 */

@AfsRabbitMqClient
public interface ChannelIdToCommissionSystemSender {

    /**经销商id数据发送到佣金系统
     * @author yaorui.zhang
     * @param entity
     */
    @AfsRabbitMqSender(serverAlias = "${com.ruicar.afs.cloud.rabbitQueue.serverAliaAcs}"
            ,exchangeName = "${com.ruicar.afs.cloud.rabbitQueue.exchangeNameAcs}"
            ,queueName = "${com.ruicar.afs.cloud.rabbitQueue.queueNameAcs.yjdpWaibaoAsyncAlterDealer}"
            ,enableOn = "${com.ruicar.afs.cloud.rabbitQueue.exchangeNameAcs}"
            ,fallBack = ChannelIdToCommissionSystemFallBack.class
            ,afsMessage = false)
    void sendAlterDealer(String entity);
}
